package com.alone.embedded.lucene.spring.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 用于标记实体类，自动创建关联的repository实例注册到ioc容器中
 *
 * @author Alone
 * @date 2022/8/25 2:02 下午
 * @see com.alone.embedded.lucene.spring.ElRepositoryRegistry
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ElEntity {

    /**
     * docName
     */
    @AliasFor("docName")
    String value() default "";

    @AliasFor("value")
    String docName() default "";

    String analyzerBeanName() default "";

}
